﻿using System;

namespace MRSite.Cache.Configuration
{
    internal class ConfigurationItem : IConfigurationItem
    {
        public ConfigurationItem(Action<ICache> actionInit)
        {
            ActionInitCache = actionInit;
        }

        public ConfigurationItem(string cacheName, Action<ICache> actionInit)
        {
            CacheName = cacheName;
            ActionInitCache = actionInit;
        }

        public string CacheName { get; private set; }

        public Action<ICache> ActionInitCache { get; private set; }
    }
}